package com.lzk.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzk.common.CustomerException;
import com.lzk.common.R;
import com.lzk.dto.SetmealDto;
import com.lzk.pojo.Setmeal;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    R<Page<SetmealDto>> setmealPage(int page, int pageSize, String name);

    R<String> saveSetMeal(SetmealDto setmealDto);

    R<SetmealDto> showSetmealById(Long id);

    R<String> updateWithDishes(SetmealDto setmealDto);

    R<String> stopSaleByIds(int status, List<Long> ids);

    R<String> delete(List<Long> ids) throws CustomerException;

    R<List<Setmeal>> listAll(Setmeal setmeal);
}
